import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

/***引入主系统操作***/
import languageMoudle from './languageMoudle.js'
import publicMoudle from './publicMoudle.js'

/***将vuex存储localstorage处理***/
// import localStoragePlugin from './plugin/localStoragePlugin'
// let storageState = localStorage.getItem('hivescm.vuex.state')
// if (storageState !== undefined && storageState !== null) {
//     state = JSON.parse(storageState)
// }


/***创建Vuex实例***/
const store = new Vuex.Store({
    // plugins: [localStoragePlugin],
    modules: {
        languageMoudle: languageMoudle,
        publicMoudle: publicMoudle,
    }
//  state: {
//		...languageMoudle.state,
//	
//	},
//  getters: {
//  	...languageMoudle.getters,
//  	
//  },
//  mutations: {
//  	...languageMoudle.mutations,
//  	
//  },
//  actions: {
//  	...languageMoudle.actions,
//
//  }
})

export default store
